Skip to content

Add npm publish workflow (OIDC trusted publishing) - #11

Merged
revxshafi merged 1 commit into
mainfrom
ci-publish-workflow
Aug 20, 2026
Merged

Add npm publish workflow (OIDC trusted publishing)#11
revxshafi merged 1 commit into
mainfrom
ci-publish-workflow

Conversation

@revxshafi

Copy link
Copy Markdown
Collaborator

Summary

Adds .github/workflows/publish.yml so a version tag ships the package to npm automatically.

  • Triggers on v* tag push, plus manual workflow_dispatch.
  • OIDC trusted publishing (id-token: write) => no long-lived NPM_TOKEN in secrets, and provenance is signed (publishConfig.provenance is already on).
  • Guards against a tag that doesn't match package.json version.
  • npm publish runs the existing prepublishOnly gate (typecheck + test + smoke + build) before anything ships.
  • Action versions match CI: checkout@v7, pnpm/action-setup@v6, setup-node@v7.

One-time setup still required (on npmjs.com)

Trusted publishing needs a trusted publisher configured on the npm package settings, pointing at this repo + publish.yml. Documented in the PR discussion.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Aug 20, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 70ac27df-0b15-4d03-850e-c2ba4c701dd6


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@revxshafi
revxshafi merged commit 725e087 into main Aug 20, 2026
5 checks passed
@revxshafi
revxshafi deleted the ci-publish-workflow branch August 20, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant